<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  <meta charset="UTF-8">
  <meta 
    name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta 
    http-equiv="X-UA-Compatible" 
    content="ie=edge">
  <meta 
    name="theme-color" 
    content="#fff" 
    id="theme-color">
  <meta 
    name="description" 
    content="霜序廿的个人网站">
  <link 
    rel="icon" 
    href="https://api2.mubu.com/v3/photo/654b368e-b847-4122-982c-86d90b3f5275.jpg">
  <title>尤大直播记录</title>
  
    
      <meta 
        property="og:title" 
        content="尤大直播记录">
    
    
      <meta 
        property="og:url" 
        content="https://shuangxunian.github.io/2021/07/20/EvanYouLive/index.html">
    
    
      <meta 
        property="og:img" 
        content="https://api2.mubu.com/v3/photo/654b368e-b847-4122-982c-86d90b3f5275.jpg">
    
    
      <meta 
        property="og:img" 
        content="如题目">
    
    
      <meta 
        property="og:type" 
        content="article">
      <meta 
        property="og:article:published_time" 
        content="2021-07-20">
      <meta 
        property="og:article:modified_time" 
        content="2021-07-20">
      <meta 
        property="og:article:author" 
        content="霜序廿">
      
        
          <meta 
            property="og:article:tag" 
            content="软实力">
        
      
    
  
  <script>
    function loadScript(url, cb) {
      var script = document.createElement('script');
      script.src = url;
      if (cb) script.onload = cb;
      script.async = true;
      document.body.appendChild(script);
    }
    function loadCSS(href, data, attr) {
      var sheet = document.createElement('link');
      sheet.ref = 'stylesheet';
      sheet.href = href;
      sheet.dataset[data] = attr;
      document.head.appendChild(sheet);
    }
    function changeCSS(cssFile, data, attr) {
      var oldlink = document.querySelector(data);
      var newlink = document.createElement("link");
      newlink.setAttribute("rel", "stylesheet");
      newlink.setAttribute("href", cssFile);
      newlink.dataset.prism = attr;
      document.head.replaceChild(newlink, oldlink);
    }
  </script>
  
    
      
      
      
      
        
        
        
        <script>
          function prismThemeChange() {
            if(document.getElementById('theme-color').dataset.mode === 'dark') {
              if(document.querySelector('[data-prism]')) {
                changeCSS('/js/lib/prism/prism-tomorrow.min.css', '[data-prism]', 'prism-tomorrow');
              } else {
                loadCSS('/js/lib/prism/prism-tomorrow.min.css', 'prism', 'prism-tomorrow');
              }
            } else {
              if(document.querySelector('[data-prism]')) {
                changeCSS('/js/lib/prism/prism.min.css', '[data-prism]', 'prism');
              } else {
                loadCSS('/js/lib/prism/prism.min.css', 'prism', 'prism');
              }
            }
          }
          prismThemeChange()
        </script>
      
      
        
        <link rel="stylesheet" href="/js/lib/prism/prism-line-numbers.min.css">
      
    
  
  <script>
    // control reverse button
    var reverseDarkList = {
      dark: 'light',
      light: 'dark'
    };
    var themeColor = {
      dark: '#1c1c1e',
      light: '#fff'
    }
    // get the data of css prefers-color-scheme
    var getCssMediaQuery = function() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    };
    // reverse current darkmode setting function
    var reverseDarkModeSetting = function() {
      var setting = localStorage.getItem('user-color-scheme');
      if(reverseDarkList[setting]) {
        setting = reverseDarkList[setting];
      } else if(setting === null) {
        setting = reverseDarkList[getCssMediaQuery()];
      } else {
        return;
      }
      localStorage.setItem('user-color-scheme', setting);
      return setting;
    };
    // apply current darkmode setting
  </script>
  
    <script>
      var setDarkmode = function(mode) {
      var setting = mode || localStorage.getItem('user-color-scheme');
      if(setting === getCssMediaQuery()) {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
        prismThemeChange();
      } else if(reverseDarkList[setting]) {
        document.documentElement.setAttribute('data-user-color-scheme', setting);
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
        prismThemeChange();
      } else {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[getCssMediaQuery()];
        document.getElementById('theme-color').dataset.mode = getCssMediaQuery();
        prismThemeChange();
      }
    };
    setDarkmode();
    </script>
  
  
  <link rel="preload" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css" as="style" >
  <link rel="preload" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css" as="style" >
  
  
    <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.js" as="script">
    <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.css" as="style" >
  
  
    <link rel="preload" href="/js/lib/lozad.min.js" as="script">
  
  
  
  
  
  
  
  <link rel="stylesheet" href="/css/main.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css">
  
    <link rel="stylesheet" href="/js/lib/lightbox/baguetteBox.min.css">
  
<meta name="generator" content="Hexo 5.4.0"></head>

  <body>
    <div class="wrapper">
       
      <nav class="navbar">
  <div class="navbar-logo">
    <span class="navbar-logo-main">
      
        <img 
          class="navbar-logo-img" 
          src="https://api2.mubu.com/v3/photo/654b368e-b847-4122-982c-86d90b3f5275.jpg" 
          alt="blog logo">
      
      <span class="navbar-logo-dsc">霜序廿的个人网站</span>
    </span>
  </div>
  <div class="navbar-menu">
    
      <a 
        href="/" 
        class="navbar-menu-item">
        
          首页
        
      </a>
    
      <a 
        href="/archives" 
        class="navbar-menu-item">
        
          归档
        
      </a>
    
      <a 
        href="/tags" 
        class="navbar-menu-item">
        
          标签
        
      </a>
    
      <a 
        href="/categories" 
        class="navbar-menu-item">
        
          分类
        
      </a>
    
      <a 
        href="/about" 
        class="navbar-menu-item">
        
          关于
        
      </a>
    
      <a 
        href="/links" 
        class="navbar-menu-item">
        
          友链
        
      </a>
    
    <a 
      class="navbar-menu-item darknavbar" 
      id="dark">
      <i class="iconfont icon-weather"></i>
    </a>
    <a 
      class="navbar-menu-item searchnavbar" 
      id="search">
      <i 
        class="iconfont icon-search" 
        style="font-size: 1.2rem; font-weight: 400;">
      </i>
    </a>
  </div>
</nav> 
      
      <div 
        id="local-search" 
        style="display: none">
        <input
          class="navbar-menu-item"
          id="search-input"
          placeholder="请输入搜索内容..." />
        <div id="search-content"></div>
      </div>
      
      <div class="section-wrap">
        <div class="container">
          <div class="columns">
            <main class="main-column">
<article class="card card-content">
  <header>
    <h1 class="post-title">
      尤大直播记录
    </h1>
  </header>
  <div class="post-meta post-show-meta">
    <time datetime="2021-07-20T10:35:10.708Z">
      <i 
        class="iconfont icon-calendar" 
        style="margin-right: 2px;">
      </i>
      <span>2021-07-20</span>
    </time>
    
      <span class="dot"></span>
      
        <a 
          href="/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/" 
          class="post-meta-link">
          技术文章
        </a>
      
    
    
      <span class="dot"></span>
      <span>1.6k 字</span>
    
  </div>
  
    <div 
      class="post-meta post-show-meta" 
      style="margin-top: -10px;">
      <div style="display: flex; align-items: center;">
        <i 
          class="iconfont icon-biaoqian" 
          style="margin-right: 2px; font-size: 1.15rem;">
        </i>
        
          
          <a 
            href="/tags/%E8%BD%AF%E5%AE%9E%E5%8A%9B/" 
            class="post-meta-link">
            软实力
          </a>
        
      </div>
    </div>
  
  </header>
  <div 
    id="section" 
    class="post-content">
    <h2 id="源码"><a href="#源码" class="headerlink" title="源码"></a>源码</h2><p>其实很多前端程序员在公司做的都是偏业务层面的，根本接触不太到很深层次的，看源码为了提升竞争力可以说是很真实了，但抛去这点，看源码还是奔着几个比较关键的点去比较好：第一，想要学习框架的思想或者你也想自己造框架、造轮子（尤大直播中说非常鼓励造轮子，还是挺好的）；第二，为了业务，比如因不熟悉框架的一些原理而在写业务时产生那种不那么表面的问题，主要还是想提升自己的工作效率（毕竟谁也不想对着一个不知道怎么冒出来的bug想一整天，最后发现是自己的对于框架的原理不熟悉而导致使用不当）</p>
<h2 id="对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？"><a href="#对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？" class="headerlink" title="对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？"></a>对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？</h2><p>首先对于开发来说，最大的提升就是可以不用去考虑数组、对象的一些变化了，都可以很好得实现响应式，同时也支持了WeakSet、WeakMap这样的数据结构。</p>
<p>其次呢，proxy实现响应式其实是将一个raw对象（原始对象）包装了一层，产生了一个新的对象，这个对象跟原始对象是不相等的，也就是说，可能会存在原始对象占用内存并且无法释放的问题，所以建议你们在将一个对象声明响应式时，尽量不要用任何的变量去引用原始对象，而是直接将该对象放在reactive中</p>
<h3 id="不太推荐的做法"><a href="#不太推荐的做法" class="headerlink" title="不太推荐的做法"></a>不太推荐的做法</h3><pre class="line-numbers language-html" data-language="html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">
<span class="token keyword">import</span> <span class="token punctuation">&#123;</span>reactive<span class="token punctuation">&#125;</span> <span class="token keyword">from</span> <span class="token string">'vue'</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">&#123;</span>
  <span class="token function">setup</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">&#123;</span>
      <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">&#123;</span> name<span class="token operator">:</span> <span class="token string">'零一'</span><span class="token punctuation">,</span> age<span class="token operator">:</span> <span class="token number">23</span> <span class="token punctuation">&#125;</span>  <span class="token comment">// 原始对象</span>
      <span class="token keyword">const</span> state <span class="token operator">=</span> <span class="token function">reactive</span><span class="token punctuation">(</span>obj<span class="token punctuation">)</span>  <span class="token comment">// 将obj包装成响应式</span>

      <span class="token keyword">return</span> <span class="token punctuation">&#123;</span>state<span class="token punctuation">&#125;</span>
  <span class="token punctuation">&#125;</span>
<span class="token punctuation">&#125;</span>
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<h3 id="推荐的做法"><a href="#推荐的做法" class="headerlink" title="推荐的做法"></a>推荐的做法</h3><pre class="line-numbers language-html" data-language="html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">
<span class="token keyword">import</span> <span class="token punctuation">&#123;</span>reactive<span class="token punctuation">&#125;</span> <span class="token keyword">from</span> <span class="token string">'vue'</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">&#123;</span>
  <span class="token function">setup</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">&#123;</span>
      <span class="token comment">// 不再先声明原始对象</span>
      <span class="token keyword">const</span> state <span class="token operator">=</span> <span class="token function">reactive</span><span class="token punctuation">(</span><span class="token punctuation">&#123;</span> name<span class="token operator">:</span> <span class="token string">'零一'</span><span class="token punctuation">,</span> age<span class="token operator">:</span> <span class="token number">23</span> <span class="token punctuation">&#125;</span><span class="token punctuation">)</span>

      <span class="token keyword">return</span> <span class="token punctuation">&#123;</span>state<span class="token punctuation">&#125;</span>
  <span class="token punctuation">&#125;</span>
<span class="token punctuation">&#125;</span>
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<h2 id="尤大，如何看待程序员从幼稚到成熟"><a href="#尤大，如何看待程序员从幼稚到成熟" class="headerlink" title="尤大，如何看待程序员从幼稚到成熟"></a>尤大，如何看待程序员从幼稚到成熟</h2><p>我认为一个凡是会说 「xxx技术是最牛逼的，xxxx技术就是垃圾」 的程序员其实是很不成熟的，因为他们但凡做过很多项目，维护过一个屎山一样的代码，都不会说出这样的话。当然对于一个框架或者技术，你可以说在理论层面做的非常好，但是真正将这个技术落地了以后，都会遇到很多问题的，所以面对真实的业务场景，对于技术是要做一些取舍的，而不是说xxx技术就是最好的</p>
<h2 id="尤大，很多黑子对你会有影响吗？"><a href="#尤大，很多黑子对你会有影响吗？" class="headerlink" title="尤大，很多黑子对你会有影响吗？"></a>尤大，很多黑子对你会有影响吗？</h2><p>哈哈，其实久而久之脸皮就越来越厚了（hhh，尤大还是很幽默的），之前看过一句话，大致的意思就是你有了一定的影响力以后，就一定会产生两种极端，一种是脑残粉；另一种是脑残黑，其实完全没有必要理会这些黑子，毕竟谁也没办法做到让谁都喜欢（心态很重要呀！）</p>
<h2 id="尤大，有什么推荐看的书籍吗？"><a href="#尤大，有什么推荐看的书籍吗？" class="headerlink" title="尤大，有什么推荐看的书籍吗？"></a>尤大，有什么推荐看的书籍吗？</h2><p>首先我觉得犀牛书还是很不错的，比较适合需要进一步提升自己的人看；红宝书…..（对不起，这里当时直播间卡了，啥也没听到，不过我个人觉得红宝书还是非常不错的，知识比较系统，对新人也比较友好）；再推荐一本我觉得非常不错的书（说到这里，尤大直接在屏幕前举起了这本书），书名是《Effective  JavaScript》，这本书相对来说比较实际，没有很多的主观看法，也挺适合想要进阶的人看的；再推荐一本德国的xxxxxx写的《xxxxxxx》（对不起，怪我英文不好，作者名和书名都没听懂，也没记下来），适合喜欢研究语言细枝末节的程序员，这本书对js很多犄角旮旯的讲解都很到位</p>
<h2 id="尤大，对于职业规划你有什么看法吗？"><a href="#尤大，对于职业规划你有什么看法吗？" class="headerlink" title="尤大，对于职业规划你有什么看法吗？"></a>尤大，对于职业规划你有什么看法吗？</h2><p>其实对于这方面，我没有太多的看法，因为我的路线也是比较特殊，跟大部分人的发展路线也不太一样，所以没有太多的发言权（高情商：哈哈，尤大还是很谦虚的，也很负责任；低情商：尤大的人生路线模仿不来！），之前在Google待了两年，然后又去一家创业公司待了两年，时间不长但也学到了很多东西，后来就去做开源了，可以跟你们聊聊专职做开源的一些看法。<br>其实做开源挺不容易的，心态要好，还需要一些机遇，Vue也是在用户量这么大的前提下，才能慢慢做起来的。专职做开源比较难，尤其是个人的形式去做，因为在开源与商业化之间的转化其实是比较困难的。其实很多开源项目会去以企业的形式维护，这样他们可以更好得获得众筹或者去为更多的企业提供一对一的支持，而个人的话是几乎没有这样的机会的，即使有，成本也很大，所以只能通过开源产生被动收益（我没有这样的经历，猜测一下应该是获得一些个人赞助或者开源项目官网的广告投放之类的吧）。<br>对于Vue的话，其实当用户量大起来以后（据说Vue有150w+用户），创造了工作的市场，有了内需，生态就起来了，有些公司也会来赞助一下Vue，当然由此衍生出来，很多人就会产出相关的培训课、教程、模板、线下会议等等，这些都是可以与商业化挂钩的。<br>还有一点非常重要的就是，你的开源项目产生的价值要有很大的用户感知（翻译一下，其实就是说你的开源项目在平时被大家广泛得使用，家喻户晓的那种）</p>
<h2 id="参考链接"><a href="#参考链接" class="headerlink" title="参考链接"></a>参考链接</h2><p><a target="_blank" rel="noopener" href="https://juejin.cn/post/6960506633839443981">昨晚尤大的连麦直播，我学到了很多！！！</a></p>

  </div>
  <div>
    
  </div>
</article>
<div class="nav">
  
    <div class="nav-item-prev">
      <a 
        href="/2021/07/21/howToUseMixinsInVueAndWhatToWatchOutFor/" 
        class="nav-link">
        <i class="iconfont icon-left nav-prev-icon"></i>
        <div>
          <div class="nav-label">上一篇</div>
          
            <div class="nav-title">Vue中mixins的使用方法和注意点 </div>
          
        </div>
      </a>
    </div>
  
  
    <div class="nav-item-next">
      <a 
        href="/2021/07/19/deepUnderstandingOfTheHTTPS2.0Protocol/" 
        class="nav-link">
        <div>
          <div class="nav-label">下一篇</div>
          
            <div class="nav-title">深入理解http2.0协议 </div>
          
        </div>
        <i class="iconfont icon-right nav-next-icon"></i>
      </a>
    </div>
  
</div>

<div 
  class="card card-content toc-card" 
  id="mobiletoc">
  <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%BA%90%E7%A0%81"><span class="toc-text">源码</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AF%B9%E4%BA%8E%E5%93%8D%E5%BA%94%E5%BC%8F%EF%BC%8CVue3%E6%94%B9%E7%94%A8proxy%E6%9D%A5%E5%AE%9E%E7%8E%B0%EF%BC%8C%E5%AF%B9%E4%BA%8E%E5%BC%80%E5%8F%91%E6%9C%89%E4%BB%80%E4%B9%88%E6%8F%90%E5%8D%87%E5%90%97%EF%BC%9F"><span class="toc-text">对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%8D%E5%A4%AA%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">不太推荐的做法</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">推荐的做法</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%A6%82%E4%BD%95%E7%9C%8B%E5%BE%85%E7%A8%8B%E5%BA%8F%E5%91%98%E4%BB%8E%E5%B9%BC%E7%A8%9A%E5%88%B0%E6%88%90%E7%86%9F"><span class="toc-text">尤大，如何看待程序员从幼稚到成熟</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%BE%88%E5%A4%9A%E9%BB%91%E5%AD%90%E5%AF%B9%E4%BD%A0%E4%BC%9A%E6%9C%89%E5%BD%B1%E5%93%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，很多黑子对你会有影响吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E6%9C%89%E4%BB%80%E4%B9%88%E6%8E%A8%E8%8D%90%E7%9C%8B%E7%9A%84%E4%B9%A6%E7%B1%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，有什么推荐看的书籍吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%AF%B9%E4%BA%8E%E8%81%8C%E4%B8%9A%E8%A7%84%E5%88%92%E4%BD%A0%E6%9C%89%E4%BB%80%E4%B9%88%E7%9C%8B%E6%B3%95%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，对于职业规划你有什么看法吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8F%82%E8%80%83%E9%93%BE%E6%8E%A5"><span class="toc-text">参考链接</span></a></li></ol>
</div></main>
            <aside class="left-column">
              
              <div class="card card-author">
                
  <img 
    src="https://api2.mubu.com/v3/photo/654b368e-b847-4122-982c-86d90b3f5275.jpg" 
    class="author-img" 
    alt="author avatar">

<p class="author-name">霜序廿</p>
<p class="author-description">无限进步</p>
<div class="author-message">
  <a 
    class="author-posts-count" 
    href="/archives">
    <span>253</span>
    <span>文章</span>
  </a>
  <a 
    class="author-categories-count" 
    href="/categories">
    <span>6</span>
    <span>分类</span>
  </a>
  <a 
    class="author-tags-count" 
    href="/tags">
    <span>51</span>
    <span>标签</span>
  </a>
</div>

  <div class="author-card-society">
    
      <div class="author-card-society-icon">
        <a target="_blank" rel="noopener" href="https://github.com/shuangxunian">
          <i class="iconfont icon-github society-icon"></i>
        </a>
      </div>
    
      <div class="author-card-society-icon">
        <a target="_blank" rel="noopener" href="https://space.bilibili.com/391117803">
          <i class="iconfont icon-bilibili society-icon"></i>
        </a>
      </div>
    
  </div>

              </div>
               <div class="sticky-tablet">
  
  
    <article class="display-when-two-columns spacer">
      <div class="card card-content toc-card">
        <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%BA%90%E7%A0%81"><span class="toc-text">源码</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AF%B9%E4%BA%8E%E5%93%8D%E5%BA%94%E5%BC%8F%EF%BC%8CVue3%E6%94%B9%E7%94%A8proxy%E6%9D%A5%E5%AE%9E%E7%8E%B0%EF%BC%8C%E5%AF%B9%E4%BA%8E%E5%BC%80%E5%8F%91%E6%9C%89%E4%BB%80%E4%B9%88%E6%8F%90%E5%8D%87%E5%90%97%EF%BC%9F"><span class="toc-text">对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%8D%E5%A4%AA%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">不太推荐的做法</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">推荐的做法</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%A6%82%E4%BD%95%E7%9C%8B%E5%BE%85%E7%A8%8B%E5%BA%8F%E5%91%98%E4%BB%8E%E5%B9%BC%E7%A8%9A%E5%88%B0%E6%88%90%E7%86%9F"><span class="toc-text">尤大，如何看待程序员从幼稚到成熟</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%BE%88%E5%A4%9A%E9%BB%91%E5%AD%90%E5%AF%B9%E4%BD%A0%E4%BC%9A%E6%9C%89%E5%BD%B1%E5%93%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，很多黑子对你会有影响吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E6%9C%89%E4%BB%80%E4%B9%88%E6%8E%A8%E8%8D%90%E7%9C%8B%E7%9A%84%E4%B9%A6%E7%B1%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，有什么推荐看的书籍吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%AF%B9%E4%BA%8E%E8%81%8C%E4%B8%9A%E8%A7%84%E5%88%92%E4%BD%A0%E6%9C%89%E4%BB%80%E4%B9%88%E7%9C%8B%E6%B3%95%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，对于职业规划你有什么看法吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8F%82%E8%80%83%E9%93%BE%E6%8E%A5"><span class="toc-text">参考链接</span></a></li></ol>
      </div>
    </article>
  
  
  <article class="card card-content categories-widget">
    <div class="categories-card">
  <div class="categories-header">
    <i 
      class="iconfont icon-fenlei" 
      style="padding-right: 2px;">
    </i>分类
  </div>
  <div class="categories-list">
    
      <a href="/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/">
        <div class="categories-list-item">
          技术文章
          <span class="categories-list-item-badge">218</span>
        </div>
      </a>
    
      <a href="/categories/%E5%85%B6%E4%BB%96/">
        <div class="categories-list-item">
          其他
          <span class="categories-list-item-badge">16</span>
        </div>
      </a>
    
      <a href="/categories/%E6%97%85%E6%B8%B8/">
        <div class="categories-list-item">
          旅游
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/categories/%E7%AE%97%E6%B3%95/">
        <div class="categories-list-item">
          算法
          <span class="categories-list-item-badge">8</span>
        </div>
      </a>
    
      <a href="/categories/%E8%80%83%E8%AF%95/">
        <div class="categories-list-item">
          考试
          <span class="categories-list-item-badge">8</span>
        </div>
      </a>
    
      <a href="/categories/%E9%98%85%E8%AF%BB/">
        <div class="categories-list-item">
          阅读
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
  </div>
</div>
  </article>
  
  <article class="card card-content tags-widget">
    <div class="tags-card">
  <div class="tags-header">
    <i 
      class="iconfont icon-biaoqian" 
      style="padding-right: 2px;">
    </i>热门标签
  </div>
  <div class="tags-list">
    
      <a 
        href="/tags/js/" 
        title="js">
        <div class="tags-list-item">js</div>
      </a>
    
      <a 
        href="/tags/vue/" 
        title="vue">
        <div class="tags-list-item">vue</div>
      </a>
    
      <a 
        href="/tags/%E9%9D%A2%E8%AF%95/" 
        title="面试">
        <div class="tags-list-item">面试</div>
      </a>
    
      <a 
        href="/tags/css/" 
        title="css">
        <div class="tags-list-item">css</div>
      </a>
    
      <a 
        href="/tags/%E7%BD%91%E7%BB%9C/" 
        title="网络">
        <div class="tags-list-item">网络</div>
      </a>
    
      <a 
        href="/tags/%E5%85%B6%E4%BB%96/" 
        title="其他">
        <div class="tags-list-item">其他</div>
      </a>
    
      <a 
        href="/tags/%E7%AE%97%E6%B3%95/" 
        title="算法">
        <div class="tags-list-item">算法</div>
      </a>
    
      <a 
        href="/tags/%E6%B5%8F%E8%A7%88%E5%99%A8/" 
        title="浏览器">
        <div class="tags-list-item">浏览器</div>
      </a>
    
      <a 
        href="/tags/html/" 
        title="html">
        <div class="tags-list-item">html</div>
      </a>
    
      <a 
        href="/tags/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/" 
        title="操作系统">
        <div class="tags-list-item">操作系统</div>
      </a>
    
      <a 
        href="/tags/%E8%80%83%E8%AF%95/" 
        title="考试">
        <div class="tags-list-item">考试</div>
      </a>
    
      <a 
        href="/tags/%E8%BD%AF%E5%AE%9E%E5%8A%9B/" 
        title="软实力">
        <div class="tags-list-item">软实力</div>
      </a>
    
      <a 
        href="/tags/DOM/" 
        title="DOM">
        <div class="tags-list-item">DOM</div>
      </a>
    
      <a 
        href="/tags/%E8%BD%AE%E5%AD%90/" 
        title="轮子">
        <div class="tags-list-item">轮子</div>
      </a>
    
      <a 
        href="/tags/%E7%BD%91%E7%BB%9C%E5%8E%9F%E7%90%86/" 
        title="网络原理">
        <div class="tags-list-item">网络原理</div>
      </a>
    
      <a 
        href="/tags/debug/" 
        title="debug">
        <div class="tags-list-item">debug</div>
      </a>
    
  </div>
</div>
  </article>
  
  
</div>
            </aside>
            <aside class="right-column">
              <div class="sticky-widescreen">
  
  
    <article class="card card-content toc-card">
      <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%BA%90%E7%A0%81"><span class="toc-text">源码</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AF%B9%E4%BA%8E%E5%93%8D%E5%BA%94%E5%BC%8F%EF%BC%8CVue3%E6%94%B9%E7%94%A8proxy%E6%9D%A5%E5%AE%9E%E7%8E%B0%EF%BC%8C%E5%AF%B9%E4%BA%8E%E5%BC%80%E5%8F%91%E6%9C%89%E4%BB%80%E4%B9%88%E6%8F%90%E5%8D%87%E5%90%97%EF%BC%9F"><span class="toc-text">对于响应式，Vue3改用proxy来实现，对于开发有什么提升吗？</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%8D%E5%A4%AA%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">不太推荐的做法</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%8E%A8%E8%8D%90%E7%9A%84%E5%81%9A%E6%B3%95"><span class="toc-text">推荐的做法</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%A6%82%E4%BD%95%E7%9C%8B%E5%BE%85%E7%A8%8B%E5%BA%8F%E5%91%98%E4%BB%8E%E5%B9%BC%E7%A8%9A%E5%88%B0%E6%88%90%E7%86%9F"><span class="toc-text">尤大，如何看待程序员从幼稚到成熟</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%BE%88%E5%A4%9A%E9%BB%91%E5%AD%90%E5%AF%B9%E4%BD%A0%E4%BC%9A%E6%9C%89%E5%BD%B1%E5%93%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，很多黑子对你会有影响吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E6%9C%89%E4%BB%80%E4%B9%88%E6%8E%A8%E8%8D%90%E7%9C%8B%E7%9A%84%E4%B9%A6%E7%B1%8D%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，有什么推荐看的书籍吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B0%A4%E5%A4%A7%EF%BC%8C%E5%AF%B9%E4%BA%8E%E8%81%8C%E4%B8%9A%E8%A7%84%E5%88%92%E4%BD%A0%E6%9C%89%E4%BB%80%E4%B9%88%E7%9C%8B%E6%B3%95%E5%90%97%EF%BC%9F"><span class="toc-text">尤大，对于职业规划你有什么看法吗？</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8F%82%E8%80%83%E9%93%BE%E6%8E%A5"><span class="toc-text">参考链接</span></a></li></ol>
    </article>
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header">
    <i 
      class="iconfont icon-wenzhang_huaban" 
      style="padding-right: 2px;">
    </i>最近文章
  </div>
  <div class="recent-posts-list">
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2022-05-01</div>
        <a href="/2022/05/01/typescriptHome/"><div class="recent-posts-item-content">typescript</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2022-01-15</div>
        <a href="/2022/01/15/javaScriptTheVariousWaysAndAdvantagesAndDisadvantagesOfDeepInheritance/"><div class="recent-posts-item-content">JavaScript深入之继承的多种方式和优缺点</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2022-01-15</div>
        <a href="/2022/01/15/javaScriptGoFromPrototypeToPrototypeChain/"><div class="recent-posts-item-content">JavaScript深入之从原型到原型链</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2022-01-15</div>
        <a href="/2022/01/15/javaScriptMemoryLeakTutorial/"><div class="recent-posts-item-content">JavaScript 内存泄漏教程</div></a>
      </div>
    
  </div>
</div>
  </article>
  
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header">
    关注嘉然！顿顿解馋！
  </div>
  <div class="recent-posts-list">
    
      <img 
        src="https://api2.mubu.com/v3/document_image/2697c6ae-10ee-41a3-9099-304bdb252d31-3807603.jpg" 
        class="myadd-img" 
        alt="author avatar">
    
  </div>
</div>
  </article>
</div>
            </aside>
          </div>
        </div>
      </div>
    </div>
     
    <footer class="footer">
  <div class="footer-container">
    <div>
      <div class="footer-dsc">
        <span>
          Copyright ©
          
            2020 -
          
          2022
        </span>
        &nbsp;
        <a 
          href="/" 
          class="footer-link">
          霜序廿的个人网站
        </a>
      </div>
    </div>

    
      <div class="footer-dsc">
        
          Powered by
          <a 
            href="https://hexo.io/" 
            class="footer-link" 
            target="_blank" 
            rel="nofollow noopener noreferrer">
            &nbsp;Hexo
          </a>
        
        
          <span>&nbsp;|&nbsp;</span>
        
        
          Theme -
          <a 
            href="https://github.com/theme-kaze" 
            class="footer-link" 
            target="_blank"
            rel="nofollow noopener noreferrer">
            &nbsp;Kaze
          </a>
        
      </div>
    
    
    
    
</footer> 
    
  <a 
    role="button" 
    id="scrollbutton" 
    class="basebutton" 
    aria-label="回到顶部">
    <i class="iconfont icon-arrowleft button-icon"></i>
  </a>

<a 
  role="button" 
  id="menubutton" 
  class="basebutton">
  <i class="iconfont icon-menu button-icon"></i>
</a>
<a 
  role="button" 
  id="popbutton" 
  class="basebutton" 
  aria-label="控制中心">
  <i class="iconfont icon-expand button-icon"></i>
</a>
<a 
  role="button" 
  id="darkbutton" 
  class="basebutton darkwidget" 
  aria-label="夜色模式">
  <i class="iconfont icon-weather button-icon"></i>
</a>
<a 
  role="button" 
  id="searchbutton" 
  class="basebutton searchwidget" 
  aria-label="搜索">
  <i class="iconfont icon-search button-icon"></i>
</a> 
     
     
     
      <script>
  var addImgLayout = function () {
    var img = document.querySelectorAll('.post-content img')
    var i
    for (i = 0; i < img.length; i++) {
      var wrapper = document.createElement('a')
      wrapper.setAttribute('href', img[i].getAttribute('data-src'))
      wrapper.setAttribute('aria-label', 'illustration')
      wrapper.style.cssText =
        'width: 100%; display: flex; justify-content: center;'
      if (img[i].alt) wrapper.dataset.caption = img[i].alt
      wrapper.dataset.nolink = true
      img[i].before(wrapper)
      wrapper.append(img[i])
      var divWrap = document.createElement('div')
      divWrap.classList.add('gallery')
      wrapper.before(divWrap)
      divWrap.append(wrapper)
    }
    baguetteBox.run('.gallery')
  }
</script>
<script>
  loadScript(
    "/js/lib/lightbox/baguetteBox.min.js",
    addImgLayout
  )
</script>
 
     
     
    <script src="/js/main.js"></script> 
     
    
      <script>
        var addLazyload = function () {
          var observer = lozad('.lozad', {
            load: function (el) {
              el.srcset = el.getAttribute('data-src')
            },
            loaded: function (el) {
              el.classList.add('loaded')
            },
          })
          observer.observe()
        }
      </script>
      <script>
        loadScript('/js/lib/lozad.min.js', addLazyload)
      </script>
     
    
    
  </body>
</html>
